package org.pzy.dubbo3.service;

import org.apache.dubbo.config.annotation.DubboReference;
import org.pzy.dubbo3.UserService;
import org.springframework.stereotype.Service;

/**
 * @Author: DRevelation
 * @Date: 2022/6/2 15:35
 */
@Service
public class OrderService {

    @DubboReference(version = "2.0")
    private UserService userService;

    public String getOrder() {
        return "Hello: " + userService.getUser();
    }

}
